package com.example.module_home

import android.os.Bundle

import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.launcher.ARouter
import com.example.lib_base.path.RouterPath
import com.example.lib_common.view.provider.BaseServiceProvider
import com.example.lib_common.view.provider.CommonServiceProvider

class HomeActivity : AppCompatActivity() {

    //private lateinit var mServiceProvider: CommonServiceProvider

    @Autowired(name = RouterPath.PATH_COMMON_PROVIDER)
    lateinit var mServiceProvider: CommonServiceProvider

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_home)


        ARouter.getInstance().inject(this)

     //   mServiceProvider = ARouter.getInstance().build(RouterPath.PATH_COMMON_PROVIDER).navigation() as CommonServiceProvider
    }
    private fun loginState(){
        mServiceProvider?.checkLoginState()
    }
}